package cn.iocoder.yudao.module.bpm.controller.admin.tohandle.task.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 审批流待办中心——任务分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BpmHandleTaskPageReqVO extends PageParam {

    @Schema(description = "bpm_handle_flow表的自增id", example = "11957")
    private Long bpmHandleFlowId;

    @Schema(description = "外部任务id", example = "3238")
    private Long extTaskId;

    @Schema(description = "任务类型", example = "1")
    private Integer taskType;

    @Schema(description = "处理人帐号", example = "李四")
    private String handleUsername;

    @Schema(description = "处理人姓名", example = "芋艿")
    private String handleName;

    @Schema(description = "来源系统", example = "29817")
    private Integer sourceSystemId;

    @Schema(description = "目标链接", example = "https://www.iocoder.cn")
    private String sourceUrl;

    @Schema(description = "任务处理状态")
    private Integer taskStatus;

    @Schema(description = "处理时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] handleTime;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] updateTime;

    @Schema(description = "创建者")
    private String creator;

    @Schema(description = "更新者")
    private String updater;

    @Schema(description = "false 有效；true 删除", example = "false")
    private Boolean deleted;

}
